package com.jxtc.enterprise.common.aspectj;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 允许注解标记在类和方法上
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface TokenRequired {
    /**
     * role 的取值当前可以为："admin" 或 "tenant"
     */
    String role() default "";

    String ROLE_ADMIN = "admin";

    String ROLE_TENANT = "tenant";

}
